# coding: utf-8

import os


def file_extension(path):
    """
    获取文件后缀
    :param path: 
    :return: .gif .mp3
    """
    return os.path.splitext(path)[1]
